//---------------------------------------------------------------------------

#ifndef TCheckH
#define TCheckH

#include "TElementSerialNumber.h"
#include "TSetting.h"
#include "TTrack.h"

//---------------------------------------------------------------------------
class TCheck : public TElementSerialNumber
{
public:
	AnsiString Name;
	TSetting Setting;
	TElementSerialNumbers CutsSerialNumbers;
	AnsiString WeatherSerialNumber;
	TElementSerialNumbers TrackSerialNumbers;
	vector<TTrack*> Tracks;

	__fastcall TCheck();
	TCheck & __fastcall operator = (const TCheck & t);
	AnsiString __fastcall TrackSerialNumber(const int TrackIndex);
};

class TChecks : public vector<TCheck>
{
public:
	int SelectedIndex;
	AnsiString Name;
	__property TCheck Selected = { read=GetSelected, write=SetSelected };
	__fastcall TChecks();
	TChecks & __fastcall operator = (const TChecks & t);
private:
	TCheck & __fastcall GetSelected(void);
	void __fastcall SetSelected(const int Index);
};

#endif
